package org.jrad.model;

import java.util.ArrayList;
import java.util.List;

public class Project {

	private List<EntityCrud> cruds;
	private String name;
	private String packageRoot;
	private PersistenceUnitData persistenceUnitData;
	
	public Project(){
		cruds = new ArrayList<EntityCrud>();
	}

	public Project(List<EntityCrud> cruds, String name, String packageRoot,
			PersistenceUnitData persistenceUnitData) {
		super();
		this.cruds = cruds;
		this.name = name;
		this.packageRoot = packageRoot;
		this.persistenceUnitData = persistenceUnitData;
	}

	public PersistenceUnitData getPersistenceUnitData() {
		return persistenceUnitData;
	}

	public void setPersistenceUnitData(PersistenceUnitData persistenceUnitData) {
		this.persistenceUnitData = persistenceUnitData;
	}

	public List<EntityCrud> getCruds() {
		return cruds;
	}

	public void setCruds(List<EntityCrud> cruds) {
		this.cruds = cruds;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPackageRoot() {
		return packageRoot;
	}

	public void setPackageRoot(String packageRoot) {
		this.packageRoot = packageRoot;
	}

	public void addCrud(EntityCrud crud){
		cruds.add(crud);		
	}
}
